package cc.rboot.inject.core;

import cc.rboot.token.core.IToken;

import java.util.concurrent.ConcurrentHashMap;

public class InjectTokenStore {

    private static final ConcurrentHashMap<String, Class<? extends IToken>> INJECT_MAP = new ConcurrentHashMap<>();

    public static void store(String key, Class<? extends IToken> token) {
        INJECT_MAP.put(key, token);
    }

    public static Class<? extends IToken> get(String key) {
        return INJECT_MAP.get(key);
    }

}
